import PlatformAdapter from "./BaseAdapter";

export default class AlipayAdapter implements PlatformAdapter {
  showToast(msg: string) {
    //@ts-ignore
    my.showToast({ content: msg, type: 'none', duration: 2000 });
  }

  showAlert(msg: string) {
    //@ts-ignore
    my.alert({ title: '提示', content: msg });
  }

  showLoading(msg: string) {
    //@ts-ignore
    my.showLoading({ content: msg });
  }

  hideLoading() {
    //@ts-ignore
    my.hideLoading();
  }
}